<template>
  <el-config-provider :locale="zhCn">
    <RouterView></RouterView>
  </el-config-provider>
</template>

<script setup lang="ts">
import { ElConfigProvider } from 'element-plus'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import { log } from './ts/logger'
log.info('应用程序启动')

// 登录信息
import mainstore from './store/index'
const { queryUserInfo } = mainstore()
queryUserInfo((islogin: boolean) => {
  log.info('是否登录：', islogin)
})

// ip信息
import ipstore from './store/ipinfo'
const { updateIpInfo } = ipstore()
updateIpInfo((ipinfo: boolean) => {
  log.info('获取ip信息结果：', ipinfo)
})
</script>
<style lang="scss">
</style>
